const path = require('path')
const CacheLib = require('../../../router/lib/cache')

const Test = function(rootPath, currentPath) {
  const apiCache = path.join(rootPath, 'router', 'routes', 'datas', 'islogin')
  console.log('apiCache=', apiCache)
  CacheLib.readyContent(apiCache).then(text => {
    console.log('text', text)
  }).catch(error => {
    console.log('*****')
    console.log(error)
  })
}

module.exports = Test